<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<script type="text/javascript" src="../../inc/ctx.jsp"></script>
<script type="text/javascript" src="../js/g.js"></script>
<link href="../css/com.css" type="text/css" rel="stylesheet"/>
<style>
    #panel{width:90%;}
</style>
</head>
<body>

<div id="panel">
<table>
    <tr>
      <th colspan="2">&nbsp;管理员信息</th>
      </tr>
    <tr>
      <td width="23%"  class="r">管理员ID：</td>
      <td width="77%"><span  id="mgrid"></span></td>
    </tr>
    <tr>
      <td class="r">管理员账号：</td>
      <td><span id="mgrname"></span></td>
    </tr>
    <tr>
      <td  class="r">角色名称：</td>
      <td>
          <select id="roleid" name="roleid" style="width:150px;"></select>
      </td>
    </tr>
    <tr>
      <td  class="r">该角色授权管理有：</td>
      <td>
          <script type="text/javascript" src="../js/rolecfg.js"></script>
      </td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td align="center">&nbsp;</td>
    </tr>
  </table>
</div>
<script type="text/javascript">
 var MIF = {
     load:function(){
         $.get('../app/admin/out_info.shtm?'+ut.r(),function(x){
             $('#mgrid').text(x.mgrid);
             $('#mgrname').text(x.mgrname);
             var role = $('#roleid');
             MGR.loadRoleSel(function(){
                 role.val(x.roleid).attr('disabled','disabled');
             });
    var lva = x.rolelevel.substring(0,x.rolelevel.length-1).split('-');
    var elv;
    for(var a in lva){
    elv = ut.e('lv' + lva[a]);
    if(va.isnull(elv))continue;
    elv.checked = 'checked';
    elv.disabled='disabled';
    }
         });
     }
 };
 MIF.load();
</script>
</body>
</html>
